var priceElements = document.getElementsByName("uc_price_name");

for(var i = 0; i < priceElements.length; i++){//
	var price = priceElements[i].innerHTML; 

	if(IsNumeric(price)){
		var formatPrice = formatDollar(parseInt(price));
		priceElements[i].innerHTML = formatPrice;
	}
	
}
function formatDollar(num) {
    var p = num.toFixed(2).split(".");
    return p[0].split("").reverse().reduce(function(acc, num, i, orig) {
        return  num + (i && !(i % 3) ? "," : "") + acc;
    }, "");
}
function IsNumeric(input){
    var RE = /^-{0,1}\d*\.{0,1}\d+$/;
    return (RE.test(input));
}